'''
Author: your name
Date: 2021-03-17 11:20:06
LastEditTime: 2021-03-30 17:38:56
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: /tinyms/tinyms-api/apps/auth/test/menuDto.py
MenuDto 为前端显示类型
Menu 为数据库中的字段类型
subMenus 为菜单的子菜单集合
'''
class organDto():
    def to_dict(items):
        lic = []
        for item in items:
            lic.append(
                {
                    'name' : item.name,
                    'code' : item.code,
                    'count': item.count
                }
                
            )
        return lic